
#include "cppjieba/Jieba.hpp"
#include <iostream>
#include <vector>

int main()
{
    // 测试jieba是否能正常工作
    cppjieba::Jieba tokenizer;

    std::string text = "今天天气很好，我们去公园玩吧";
    std::vector<std::string> words;

    std::cout << "测试文本: " << text << std::endl;

    tokenizer.Cut(text, words);

    std::cout << "分词结果: ";
    for (const auto &word : words)
    {
        std::cout << word << "/";
    }
    std::cout << std::endl;

    return 0;
}